package ai.zixing.example01;

public class Client {
    public static void main(String[] args) {
        Handler handlerA = new HandlerA();
        Handler handlerB = new HandlerB();
        Handler handlerC = new HandlerC();
        handlerA.setSuccessor(handlerB);
        handlerB.setSuccessor(handlerC);
        RequestData requestData = new RequestData("请求数据： ABCD");
        handlerA.handle(requestData);
    }
}
